import request from '@/utils/request'

// 查询在线咨询列表
export function listChatMsg(query) {
  return request({
    url: '/schoolSys/chatMsg/list',
    method: 'get',
    params: query
  })
}

// 查询在线咨询详细
export function getChatMsg(id) {
  return request({
    url: '/schoolSys/chatMsg/' + id,
    method: 'get'
  })
}

// 新增在线咨询
export function addChatMsg(data) {
  return request({
    url: '/schoolSys/chatMsg',
    method: 'post',
    data: data
  })
}

// 修改在线咨询
export function updateChatMsg(data) {
  return request({
    url: '/schoolSys/chatMsg',
    method: 'put',
    data: data
  })
}

// 删除在线咨询
export function delChatMsg(id) {
  return request({
    url: '/schoolSys/chatMsg/' + id,
    method: 'delete'
  })
}


// 查询家长列表
export function getAllpatriarch() {
  return request({
    url: '/schoolSys/teach/getAllpatriarch',
    method: 'get'
  })
}
// 查询家长列表
export function getAllteacher() {
  return request({
    url: '/schoolSys/teach/getAllTeacher',
    method: 'get'
  })
}

